import request from '@/utils/request'
// 获取banner图
export const getBanner = (type: number = 2) => request<IBannerRes>(`/banner?type=${type}`)

// 歌单 ( 网友精选碟 )
/**
 *
 * @param offset {number} 页码
 * @param limit   {number} 每页多少条
 */
export const getSongSheet = (offset: number = 1, limit: number = 50) =>
  request<IGetSongSheetRes>(`/top/playlist?offset=${offset}&limit=${limit}`)

// 获取歌单对应的歌曲列表
export const getSongSheetSongList = (id: number, offset: number = 1, limit: number = 100) =>
  request<IGetSongSheetSongListRes>(`/playlist/track/all?id=${id}&limit=${limit}&offset=${offset}`)
